<script>
export default {
	methods: {
		getUserLocation() {
			//使用定位api
			uni.getLocation({
				type: "gcj02",
				success(res) {
					// console.log(res);
				},
				fail(err) {
					// console.log(err);
				}
			});
		}
	},
	onLaunch: function() {
		// console.log("App Launch", this);
		this.getUserLocation();
	},
	onShow: function() {
		// console.log("App Show");
	},
	onHide: function() {
		// console.log("App Hide");
	}
};
</script>

<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
</style>
